

		<?php
			
			include("smsconfig.php");
			
			if(array_key_exists("verifica_envio",$_POST)){
				$message=$_POST['message'];
				$tel=$_POST['tel'];
				
				$request='https://www.12voip.com/myaccount/sendsms.php?username='.$smsuser​.'&password='.$smspass;
				$request=$request.'&from='.$sender.'&to='.$tel.'&text='.$message;
				$r = new HttpRequest($request, HttpRequest::METH_POST);
				try {
					echo $r->send()->getBody();
					echo 'Le message a été bien envoyé!';
				} catch (HttpException $ex) {
					echo $ex;
				}
			}	
		?>
